package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 材料对象 material
 *
 * 材料表与记录表与明细表
 * @author ruoyi
 * @date 2020-12-16
 */
public class MaterialTwo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private long mId;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String mName;

    /** 型号 */
    @Excel(name = "型号")
    private String mModel;

    /** 规格 */
    @Excel(name = "规格")
    private String mdSpecifications;

    /** 材料单位 */
//    @Excel(name = "材料单位")
    private String mUnit;

    /** 单位 */
//    @Excel(name = "材料单位id")
    private long Unit;

    /** 使用量 */
//    @Excel(name = "使用量")
    private Double mNumber;
    /** 仓库材料明细 */
    private long mdId;

    /** 材料单价 */
    @Excel(name = "材料单价")
    private Double mdPrice;

    /** 材料品牌
     */
    @Excel(name = "材料品牌")
    private String mdBrand;

    /** 材料来源 */
    @Excel(name = "材料来源")
    private String mdSupplier;

    /** 现有总量 */
//    @Excel(name = "现有总量")
    private Double mdSum;

    @Excel(name = "去向")
    private String wrWhareabouts;

    @Excel(name = "出入库数量")
    private Double wrNumber;

    /** 操作内容 */
    @Excel(name = "操作内容",readConverterExp = "0=出库,1=入库")
    private String wrState;

    /** 总金额 */
    @Excel(name = "总金额")
    private Double mdMoney;

    /** 入库时间
     */
//    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd" )
    private Date mdIndate;
    /** 备注 */
    @Excel(name = "备注")
    private String mRemarks;

    /** 材料外键 */
//    @Excel(name = "材料外键")
    private Long mdMId;


    /** 出入库表 */
    private long wrId;

    /** 所属项目 */
//    @Excel(name = "盘点数量")
    private Double iCount;

    /** 所属项目 */
//    @Excel(name = "盘点时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date iDate;

    /** 外键 */
//    @Excel(name = "材料外键")
    private long wrMId;

    /** 所属仓库 */
//    @Excel(name = "所属仓库")
    private long wrWId;
    /** 所属仓库 */
//    @Excel(name = "所属仓库")
    private String wName;

    //出入库备注
    private String wrRemark;

    /** 操作时间 */
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date wrDate;

    private Integer mdType;

    //供应商
    private String mdBusiness;

    @Override
    public String toString() {
        return "MaterialTwo{" +
                "mId=" + mId +
                ", mName='" + mName + '\'' +
                ", mModel='" + mModel + '\'' +
                ", mdSpecifications='" + mdSpecifications + '\'' +
                ", mUnit='" + mUnit + '\'' +
                ", Unit=" + Unit +
                ", mNumber=" + mNumber +
                ", mdId=" + mdId +
                ", mdPrice=" + mdPrice +
                ", mdBrand='" + mdBrand + '\'' +
                ", mdSupplier='" + mdSupplier + '\'' +
                ", mdSum=" + mdSum +
                ", wrWhareabouts='" + wrWhareabouts + '\'' +
                ", wrNumber=" + wrNumber +
                ", wrState='" + wrState + '\'' +
                ", mdMoney=" + mdMoney +
                ", mdIndate=" + mdIndate +
                ", mRemarks='" + mRemarks + '\'' +
                ", mdMId=" + mdMId +
                ", wrId=" + wrId +
                ", iCount=" + iCount +
                ", iDate=" + iDate +
                ", wrMId=" + wrMId +
                ", wrWId=" + wrWId +
                ", wName='" + wName + '\'' +
                ", wrRemark='" + wrRemark + '\'' +
                ", wrDate=" + wrDate +
                ", mdType=" + mdType +
                ", mdBusiness='" + mdBusiness + '\'' +
                '}';
    }

    public String getMdBusiness() {
        return mdBusiness;
    }

    public void setMdBusiness(String mdBusiness) {
        this.mdBusiness = mdBusiness;
    }

    public Integer getMdType() {
        return mdType;
    }

    public void setMdType(Integer mdType) {
        this.mdType = mdType;
    }

    public long getmId() {
        return mId;
    }

    public void setmId(long mId) {
        this.mId = mId;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmModel() {
        return mModel;
    }

    public void setmModel(String mModel) {
        this.mModel = mModel;
    }

    public String getMdSpecifications() {
        return mdSpecifications;
    }

    public void setMdSpecifications(String mdSpecifications) {
        this.mdSpecifications = mdSpecifications;
    }

    public String getmUnit() {
        return mUnit;
    }

    public void setmUnit(String mUnit) {
        this.mUnit = mUnit;
    }

    public long getUnit() {
        return Unit;
    }

    public void setUnit(long unit) {
        Unit = unit;
    }

    public Double getmNumber() {
        return mNumber;
    }

    public void setmNumber(Double mNumber) {
        this.mNumber = mNumber;
    }

    public long getMdId() {
        return mdId;
    }

    public void setMdId(long mdId) {
        this.mdId = mdId;
    }

    public Double getMdPrice() {
        return mdPrice;
    }

    public void setMdPrice(Double mdPrice) {
        this.mdPrice = mdPrice;
    }

    public String getMdBrand() {
        return mdBrand;
    }

    public void setMdBrand(String mdBrand) {
        this.mdBrand = mdBrand;
    }

    public String getMdSupplier() {
        return mdSupplier;
    }

    public void setMdSupplier(String mdSupplier) {
        this.mdSupplier = mdSupplier;
    }

    public Double getMdSum() {
        return mdSum;
    }

    public void setMdSum(Double mdSum) {
        this.mdSum = mdSum;
    }

    public String getWrWhareabouts() {
        return wrWhareabouts;
    }

    public void setWrWhareabouts(String wrWhareabouts) {
        this.wrWhareabouts = wrWhareabouts;
    }

    public Double getWrNumber() {
        return wrNumber;
    }

    public void setWrNumber(Double wrNumber) {
        this.wrNumber = wrNumber;
    }

    public String getWrState() {
        return wrState;
    }

    public void setWrState(String wrState) {
        this.wrState = wrState;
    }

    public Double getMdMoney() {
        return mdMoney;
    }

    public void setMdMoney(Double mdMoney) {
        this.mdMoney = mdMoney;
    }

    public Date getMdIndate() {
        return mdIndate;
    }

    public void setMdIndate(Date mdIndate) {
        this.mdIndate = mdIndate;
    }

    public String getmRemarks() {
        return mRemarks;
    }

    public void setmRemarks(String mRemarks) {
        this.mRemarks = mRemarks;
    }

    public Long getMdMId() {
        return mdMId;
    }

    public void setMdMId(Long mdMId) {
        this.mdMId = mdMId;
    }

    public long getWrId() {
        return wrId;
    }

    public void setWrId(long wrId) {
        this.wrId = wrId;
    }

    public Double getiCount() {
        return iCount;
    }

    public void setiCount(Double iCount) {
        this.iCount = iCount;
    }

    public Date getiDate() {
        return iDate;
    }

    public void setiDate(Date iDate) {
        this.iDate = iDate;
    }

    public long getWrMId() {
        return wrMId;
    }

    public void setWrMId(long wrMId) {
        this.wrMId = wrMId;
    }

    public long getWrWId() {
        return wrWId;
    }

    public void setWrWId(long wrWId) {
        this.wrWId = wrWId;
    }

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    public String getWrRemark() {
        return wrRemark;
    }

    public void setWrRemark(String wrRemark) {
        this.wrRemark = wrRemark;
    }

    public Date getWrDate() {
        return wrDate;
    }

    public void setWrDate(Date wrDate) {
        this.wrDate = wrDate;
    }
}
